//
//  FBMedical_Toast.m
//  FBMedical
//
//  Created by maqz on 2017/9/21.
//  Copyright © 2017年 YJ XML. All rights reserved.
//

#import "FBToast.h"
#import "FBMessageHUD.h"

@implementation FBToast
+ (void)toastWithMessage:(NSString *)message {
    [FBMessageHUD showMessageWithText:message];
}

+ (void)toastWithMessage:(NSString *)message delayTime:(NSTimeInterval)time {
    if (time <= 0) {
        time = 3;
    }
    FBMessageHUD *hud = [FBMessageHUD shareInstance];
    hud.showTime = time;
    hud.text = message;
    [hud show];
}

@end
